#ifndef MEDIACHECKER_H
#define MEDIACHECKER_H

#include <phonon>
#include <QObject>
#include <QMutex>
#include <QWaitCondition>
#include <Maestro/mcplugins.h>

class MediaChecker : public QObject {
    Q_OBJECT
public:
    MediaChecker();
    bool checkValid(MediaFile * file);
private slots:
    void metaDataChanged();
    void stateChanged(Phonon::State,Phonon::State);
private:
    QMutex * stateMutex;
    Phonon::MediaObject * mediaObject;
    QWaitCondition condition;
    QList<MediaFile *> queue;
    MediaFile * file;
};


#endif // MEDIACHECKER_H
